package com.dms.modules.message.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@ApiModel(value = "聊天消息DTO")
public class ChatMessageDTO {
    
    @ApiModelProperty("消息ID")
    private Long id;

    @NotNull(message = "接收者ID不能为空")
    @ApiModelProperty("接收者ID")
    private Long receiverId;

    @NotBlank(message = "消息内容不能为空")
    @ApiModelProperty("消息内容")
    private String content;

    @NotNull(message = "消息类型不能为空")
    @ApiModelProperty("消息类型：1-文本，2-图片，3-语音")
    private Integer type;
} 